package factorymethod;

/**
 * @author wx-li
 * @company 希睿科技(www.xraitech.com)
 * @copyright (c) 2018 希睿科技( www.xraitech.com )Inc. All rights reserved.
 * @date 2020/10/16 16:24
 * @since JDK1.8
 */
public class StaticBarInterfaceFactory {
    public static BarInterface getInstance() {
        return new BarInterfaceImpl();
    }

    public static BarInterface getInstance(Foobar foobar) {
        return new BarInterfaceImpl(foobar);
    }

    public BarInterface getInstance1() {
        return new BarInterfaceImpl();
    }

    public BarInterface getInstance1(Foobar foobar) {
        return new BarInterfaceImpl(foobar);
    }
}
